package com.alibaba.ai.service.impl;

import com.alibaba.ai.dao.SearchMapper;
import com.alibaba.ai.service.SearchService;
import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import javax.annotation.Resource;

@Service
public class SearchServiceImpl implements SearchService {
    @Resource
    private SearchMapper searchMapper;
    @Override
    public String selectBysearch(String cDistrict, String cTradingArea, String cVillageName) {
        if (!StringUtils.isEmpty(cDistrict) || !StringUtils.isEmpty(cTradingArea) || !StringUtils.isEmpty(cVillageName)){
        }
        return JSON.toJSONString(searchMapper.selectBysearch(cDistrict,cTradingArea,cVillageName));
    }
}
